﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BizTalk_2010_Web_Console._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>BizTalk Web Console</title>
    <style type="text/css">
        .style1
        {
            width: 30%;
        }
        .style2
        {
            width: 4px;
        }
        .BodyStyle
        {
            font-family: Verdana;
            font-size: 10px;
        }
        .style3
        {
            width: 59%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="BodyStyle">
        <table style="width: 100%;">
            <tr>
                <td class="style1" style="vertical-align: top; border-right-style:solid;border-right-width:1px; border-right-color:#ADB9CD">
                    <asp:TreeView ID="BizTalkServerAdministrationTreeView" runat="server" OnSelectedNodeChanged="BizTalkServerAdministrationTreeView_SelectedNodeChanged">
                        <SelectedNodeStyle BackColor="#F0F0F0" BorderColor="#CED4DF" BorderStyle="Solid"
                            BorderWidth="1px" />
                    </asp:TreeView>
                </td>
                <td style="vertical-align: top" class="style2">
                    &nbsp;
                </td>
                <td style="vertical-align: top; margin-left: 40px;">
                    <asp:Panel ID="PanelBizTalkQueries" runat="server" Width="700px" ScrollBars="Auto"
                        Visible="false">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 20%">
                                    Search for</td>
                                <td class="style3">
                                    <asp:DropDownList ID="DropDownListSearchFor" runat="server" 
                                        CssClass="BodyStyle" 
                                        onselectedindexchanged="DropDownListSearchFor_SelectedIndexChanged" AutoPostBack="True">
                                        <asp:ListItem Selected="True" Value="All">All In-Progress Service Instances</asp:ListItem>
                                       <asp:ListItem Value="RunningAll">Running Service Instances</asp:ListItem>
                                        <asp:ListItem Value="SuspendedAll">Suspended Service Instances</asp:ListItem>
                                       <%--  <asp:ListItem>Messages</asp:ListItem>
                                        <asp:ListItem>Subscriptions</asp:ListItem>
                                        <asp:ListItem>Tracked Message Events</asp:ListItem>
                                        <asp:ListItem>Tracked Message Instances</asp:ListItem>--%>
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 80%">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Instance Status</td>
                                <td class="style3">
                                    <asp:DropDownList ID="DropDownListInstanceStatus" runat="server" CssClass="BodyStyle" >
                                        <asp:ListItem Selected="True" Value="None">None</asp:ListItem>
                                        <asp:ListItem  Value="RunningAll">All Running</asp:ListItem>
                                        <asp:ListItem  Value="SuspendedAll">All Suspended</asp:ListItem>
                                        <asp:ListItem Value="Active">Active</asp:ListItem>
                                        <asp:ListItem Value="Dehydrated">Dehydrated</asp:ListItem>
                                        <asp:ListItem Value="ReadyToRun">Ready to run</asp:ListItem>
                                        <asp:ListItem Value="Scheduled">Scheduled</asp:ListItem>
                                        <asp:ListItem Value="SuspendedNotResumable">Suspended (not resumable)</asp:ListItem>
                                        <asp:ListItem Value="Suspended">Suspended (resumable)</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 80%">
                                    <asp:Button ID="ButtonRunQuery" runat="server" CssClass="BodyStyle" 
                                        onclick="ButtonRunQuery_Click" Text="Run Query" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Maximum matches</td>
                                <td class="style3">
                                    <asp:TextBox ID="TextBoxMaximumMatches" runat="server" CssClass="BodyStyle" Text="50">
                                    </asp:TextBox>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                        ControlToValidate="TextBoxMaximumMatches" 
                                        ErrorMessage="The value must be between 0 and 50000" MaximumValue="50000" 
                                        MinimumValue="0"></asp:RangeValidator>
                                </td>
                                <td style="width: 80%">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Application Name</td>
                                <td class="style3">
                                    <asp:DropDownList ID="DropDownListApplicationName" runat="server" 
                                        CssClass="BodyStyle" AppendDataBoundItems="True">
                                        <asp:ListItem Selected="True">All</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 80%">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    HostName</td>
                                <td class="style3">
                                    <asp:DropDownList ID="DropDownListHostName" runat="server" CssClass="BodyStyle" 
                                        AppendDataBoundItems="True">
                                        <asp:ListItem Selected="True">All</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 80%">
                                    &nbsp;</td>
                            </tr>
                             <tr>
                                <td style="width: 20%">
                                    Service Class</td>
                                <td class="style3">
                                    <asp:DropDownList ID="DropDownListServiceClass" runat="server" CssClass="BodyStyle">
                                        <asp:ListItem Selected="True" Value="All">All</asp:ListItem>
                                        <asp:ListItem Value="NonCreatableReceiver">Isolated Adapter</asp:ListItem>
                                        <asp:ListItem Value="Messaging">Messaging</asp:ListItem>
                                        <asp:ListItem Value="MessagingAll" >Messaging, Isolated Adapter</asp:ListItem>
                                        <asp:ListItem Value="MSMQT">MSMQT</asp:ListItem>
                                        <asp:ListItem Value="Orchestration">Orchestration</asp:ListItem>
                                        <asp:ListItem Value="RoutingFailure">Routing Failure Report</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                 <td style="width: 80%">
                                     &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    &nbsp;</td>
                                <td class="style3">
                                    Query Results :
                                    <asp:Label ID="LabelQueryResult" runat="server" Font-Bold="True" Text="0"></asp:Label>
                                    &nbsp;items were found</td>
                                <td style="width: 80%">
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="PanelBizTalkConsole" runat="server" Width="700px" ScrollBars="Auto">
                        <asp:GridView ID="BizTalkConsoleGridView" runat="server" CellPadding="5" CellSpacing="2"
                            EmptyDataText="There are no items to show in this view" AutoGenerateSelectButton="True"
                            OnSelectedIndexChanged="BizTalkConsoleGridView_SelectedIndexChanged">
                            <HeaderStyle BackColor="#ADB9CD" />
                            <PagerSettings Position="Top" />
                        </asp:GridView>
                        <br />
                        <br />
                        <br />
                    </asp:Panel>
                    &nbsp;
                </td>
                <td style="vertical-align: top; width: 30%; border-left-style:solid;border-left-color:#ADB9CD; border-left-width:1px">
                    <table style="width: 150px;">
                        <tr>
                            <td style="background-color: #ADB9CD">
                                Actions
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataList ID="ActionsDataList" runat="server" Visible="false">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButtonAction" runat="server" Text='<%# Eval("ActionName") %>'
                                            OnClick="LinkButtonAction_Click" Enabled="<%# Bind('IsEnabled') %>"></asp:LinkButton>
                                        <%--Enabled="<%# Bind('IsEnabled') %>"--%>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
